﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ComponentModel.Composition;

namespace ETRobocon.RaceTraking.GamePresentation
{
    [Export(typeof(IClearMarksBuilder))]
    [ExportMetadata("Kind","InCourse")]
    public class ClearMarksBuilderForInCourse : ClearMarksBuilder
    {
    }

    [Export(typeof(IClearMarksBuilder))]
    [ExportMetadata("Kind","OutCourse")]
    public class ClearMarksBuilderForOutCourse : ClearMarksBuilder
    {
    }

    public class ClearMarksBuilder : IClearMarksBuilder
    {

        public ClearMarksBuilder()
        {
        }

        #region IClearMarksBuilder Members

        public List<IClearMarkEffectView> Create(int no)
        {
            List<IClearMarkEffectView> views = new List<IClearMarkEffectView>();
            for (int i = 0; i < no; i++)
            {
                views.Add(new UserControlClearMark());
            }
            return views;
        }

        #endregion
    }
}
